{% extends "base.html" %}
{% load slice from shop %}
{% load staticfiles %}
{% load bootstrap_pagination from bootstrap3 %}
{% load render_bundle from webpack_loader %}

{% block footer_scripts %}
  {{ block.super }}
  {% render_bundle 'category' 'js' %}
{% endblock footer_scripts %}

{% block title %}{{ category }} — {{ block.super }}{% endblock %}

{% block breadcrumb %}
    {{ block.super }}
    {% for breadcrumb in breadcrumbs %}
        <li{% if forloop.last %} class="active"{% endif %}>
            {% if not forloop.last %}
                <a href="{{ breadcrumb.get_absolute_url }}">{{ breadcrumb }}</a>
            {% else %}
                <span>{{ breadcrumb }}</span>
            {% endif %}
        </li>
    {% endfor %}
{% endblock breadcrumb %}

{% block content %}
    {% csrf_token %}
    <div id="category-page" data-category='{"id":{{category.id}}}'></div>
{% endblock content %}
